<?php

class hello_world_ResourceType
{
  public __construct()
  {
    $this->set_canonical_content_type('xml');
    $this->add_supported_content_type('xhtml', 0.9);
  }

  public function get()
  {
  }

  protected function get_xhtml()
  {
    $this->response->run_template('hello-world');
  }

  public function put()
  {
    $this->request->body();
  }
}

?>
